const app = {
  state: {
    randstr: '', // 验证码随机数
    pagePerm: {}, // 当前路由的按钮
    pagination: {
      pageSize: 10,
      pageNum: 1
    } // 分页数据，传递到table组件内计算序号
  },
  mutations: {
    SET_RANDSTR: (state, randstr) => {
      state.randstr = randstr
    },
    SET_PAGE_PERM: (state, pagePerm) => {
      state.pagePerm = pagePerm || {}
    },
    SET_PAGINATION: (state, val) => {
      state.pagination = { ...val }
    }
  },
  actions: {

  }
}

export default app
